<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');

    $router->resource('clubs', ClubController::class);
    $router->resource('schools', SchoolController::class);
    $router->resource('school-class-and-grades', SchoolClassAndGradeController::class);
    $router->resource('class-and-grade-times', ClassAndGradeTimeController::class);
    $router->resource('application-forms', ApplicationFormController::class);
    $router->resource('student-applications', StudentApplicationController::class);
    $router->get('application-form-detail-table/{id}','ApplicationFormController@application_form_table_detail');
});
